package com.tchintech.pay.delegate;

import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/8/14 0014.
 */

public class ChangePwDelegate extends AppDelegate {
    @Bind(R.id.tv_title)
    TextView tv_title;
    @Bind(R.id.iv_back)
    ImageView iv_back;
    @Bind(R.id.edit_old)
    EditText edit_old;
    @Bind(R.id.edit_new)
    EditText edit_new;
    @Bind(R.id.edit_rep)
    EditText edit_rep;
    @Bind(R.id.tv_phone)
    TextView tv_phone;
    @Bind(R.id.change_bt)
    Button change_bt;
    @Override
    public int getRootLayoutId() {
        return R.layout.activity_changepw;
    }

    public void setTitle(String str) {
        tv_title.setText(str);
    }

    public void setVisible() {
        iv_back.setVisibility(View.VISIBLE);
    }

    public String getTexts(int id) {
        String string = "";
        EditText et = get(id);
        string = et.getText().toString().trim();
        return string;
    }

    public TextView getTv_phone(){
        return  tv_phone;
    }
}
